home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / dev / lang / Python16_Src.lha / Python16_Source / Include / fileobject.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-08-03  |  958 b   |  28 lines

  1. #ifndef Py_FILEOBJECT_H
  2. #define Py_FILEOBJECT_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6.  
  7. /* File object interface */
  8.  
  9. extern DL_IMPORT(PyTypeObject) PyFile_Type;
  10.  
  11. #define PyFile_Check(op) ((op)->ob_type == &PyFile_Type)
  12.  
  13. extern DL_IMPORT(PyObject *) PyFile_FromString Py_PROTO((char *, char *));
  14. extern DL_IMPORT(void) PyFile_SetBufSize Py_PROTO((PyObject *, int));
  15. extern DL_IMPORT(PyObject *) PyFile_FromFile
  16.     Py_PROTO((FILE *, char *, char *, int (*)Py_FPROTO((FILE *))));
  17. extern DL_IMPORT(FILE *) PyFile_AsFile Py_PROTO((PyObject *));
  18. extern DL_IMPORT(PyObject *) PyFile_Name Py_PROTO((PyObject *));
  19. extern DL_IMPORT(PyObject *) PyFile_GetLine Py_PROTO((PyObject *, int));
  20. extern DL_IMPORT(int) PyFile_WriteObject Py_PROTO((PyObject *, PyObject *, int));
  21. extern DL_IMPORT(int) PyFile_SoftSpace Py_PROTO((PyObject *, int));
  22. extern DL_IMPORT(int) PyFile_WriteString Py_PROTO((char *, PyObject *));
  23.  
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27. #endif /* !Py_FILEOBJECT_H */
  28.